From 0537b167ca92d96192c744e8a78878679551e6d1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 20 Jan 2021 18:51:01 -0500 Subject: [PATCH] inspector: Redo the controllers page Use a column view, and only show the widgets own controllers. --- gtk/inspector/controllers.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gtk/inspector/controllers.c b/gtk/inspector/controllers.c index 5f0fb92242..08144f1e10 100644 --- a/gtk/inspector/controllers.c +++ b/gtk/inspector/controllers.c @@ -24,13 +24,8 @@ #include "gtkdropdown.h" #include "gtkbox.h" #include "gtkcustomsorter.h" -#include "gtkflattenlistmodel.h" -#include "gtkframe.h" #include "gtkgesture.h" #include "gtklabel.h" -#include "gtklistbox.h" -#include "gtkmaplistmodel.h" -#include "gtkpropertylookuplistmodelprivate.h" #include "gtkscrolledwindow.h" #include "gtksortlistmodel.h" #include "gtkstack.h" @@ -277,6 +272,7 @@ gtk_inspector_controllers_set_object (GtkInspectorControllers *self, if (!GTK_IS_WIDGET (object)) { + gtk_column_view_set_model (GTK_COLUMN_VIEW (self->view), NULL); g_object_set (page, "visible", FALSE, NULL); return; } -- 2.30.2